package com.peace.hospital.entity.drugstorage;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.peace.hospital.entity.common.Druginformation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xie
 * @since 2019-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Outdrug implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "outdid", type = IdType.AUTO)
    private Integer outdid;

    private Integer outid;

    private Integer drugid;

    private Integer outdnum;

    private Date outddate;
    @TableField(exist = false)
    private Druginformation druginformation;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getOutdid() {
        return outdid;
    }

    public void setOutdid(Integer outdid) {
        this.outdid = outdid;
    }

    public Integer getOutid() {
        return outid;
    }

    public void setOutid(Integer outid) {
        this.outid = outid;
    }

    public Integer getDrugid() {
        return drugid;
    }

    public void setDrugid(Integer drugid) {
        this.drugid = drugid;
    }

    public Integer getOutdnum() {
        return outdnum;
    }

    public void setOutdnum(Integer outdnum) {
        this.outdnum = outdnum;
    }

    public Date getOutddate() {
        return outddate;
    }

    public void setOutddate(Date outddate) {
        this.outddate = outddate;
    }

    public Druginformation getDruginformation() {
        return druginformation;
    }

    public void setDruginformation(Druginformation druginformation) {
        this.druginformation = druginformation;
    }

    @Override
    public String toString() {
        return "Outdrug{" +
                "outdid=" + outdid +
                ", outid=" + outid +
                ", drugid=" + drugid +
                ", outdnum=" + outdnum +
                ", outddate=" + outddate +
                ", druginformation=" + druginformation +
                '}';
    }
}
